.student-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
  font-size: 24px;
  color: #333;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn-export, .btn-import, .btn-primary {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-export {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.btn-import {
  background-color: #52c41a;
  color: white;
  border: 1px solid #52c41a;
}

.btn-import:hover {
  background-color: #45a319;
}

.btn-export:hover {
  background-color: #e0e0e0;
}

.btn-primary {
  background-color: #4a6cf7;
  color: white;
}

.btn-primary:hover {
  background-color: #3a5be7;
}

.btn-danger {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-danger:hover:not(.disabled) {
  background-color: #ff7875;
}

.btn-danger.disabled {
  background-color: #f5f5f5;
  color: #bfbfbf;
  cursor: not-allowed;
}

.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 16px;
}

.search-box {
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

.filter-controls {
  display: flex;
  gap: 12px;
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #4a6cf7;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  gap: 8px;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #4a6cf7;
}

.page-btn.active {
  background-color: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  margin-left: 16px;
  font-size: 14px;
  color: #666;
}

/* 每页显示条数选择器样式 */
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  font-size: 14px;
  color: #666;
}

.page-size-select {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.page-size-select:focus {
  outline: none;
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

.page-size-select:hover {
  border-color: #4a6cf7;
}

/* 响应式分页组件调整 */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: 6px;
}
  
  .page-btn {
    min-width: 36px;
    padding: 6px 8px;
    font-size: 13px;
  }
  
  .page-info {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 10px;
    font-size: 13px;
  }
  
  .page-size-selector {
    margin-left: 0;
}

/* 导入模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.import-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.import-modal .modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.import-modal .modal-body {
  padding: 20px;
}

.import-instructions {
  margin-bottom: 24px;
}

.import-instructions h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.import-instructions ul {
  padding-left: 20px;
  margin: 0;
}

.import-instructions li {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.import-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
  border-color: #4a6cf7;
}

.import-errors {
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
}

.import-errors h3 {
  font-size: 16px;
  color: #cf1322;
  margin-top: 0;
  margin-bottom: 12px;
}

.import-errors ul {
  padding-left: 20px;
  margin: 0;
}

.import-errors li {
  margin-bottom: 8px;
  color: #cf1322;
  font-size: 14px;
}

.import-preview {
  margin-bottom: 24px;
}

.import-preview h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
}

.preview-table-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.preview-table th,
.preview-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.preview-table th {
  background-color: #fafafa;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 10;
}

.preview-table tr:hover {
  background-color: #f9f9f9;
}

.preview-more {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-top: 8px;
}

.import-result {
  text-align: center;
  padding: 24px 0;
}

.import-result h3 {
  font-size: 18px;
  color: #52c41a;
  margin-bottom: 12px;
}

.import-result p {
  color: #666;
  font-size: 16px;
  margin-bottom: 8px;
}

.import-result .warning {
  color: #faad14;
}

.btn-cancel {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background-color: #f5f5f5;
}

.import-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .import-actions {
    flex-direction: column;
  }
  
  .preview-table th,
  .preview-table td {
    padding: 8px;
    font-size: 13px;
  }
  
  .import-modal .modal-footer {
    flex-direction: column-reverse;
  }
  
  .import-modal .modal-footer button {
    width: 100%;


/* 按钮禁用状态 */
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #999;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
  background-color: #f5f5f5;
  border-color: #ddd;
}

/* 导入按钮样式调整 */
.header-actions .btn-import {
  background-color: #52c41a;
  color: white;
  border: 1px solid #52c41a;
}

.header-actions .btn-import:hover {
  background-color: #45a319;
}

/* 导入模态框动画效果 */
.modal-overlay {
  animation: fadeIn 0.3s ease;
}

.modal-content {
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 简化移动设备上的分页控件 */
.pagination .page-btn:nth-child(1), /* 首页按钮 */
.pagination .page-btn:nth-last-child(5) /* 末页按钮 */ {
  display: none;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.student-page > * {
  animation: fadeIn 0.3s ease-out;
}

/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

/* 增强的下拉菜单样式 */
.enhanced-select-container {
  position: relative;
  display: inline-block;
}

.filter-select.enhanced-select {
  padding-right: 32px; /* 为清除按钮留出空间 */
  min-width: 150px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-select.enhanced-select:hover {
  border-color: #4a6cf7;
}

.filter-select.enhanced-select option {
  padding: 8px;
}

/* 清除按钮样式 */
.clear-filter-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-filter-btn:hover {
  background-color: #e0e0e0;
  color: #333;
  transform: translateY(-50%) scale(1.1);
}

/* 筛选结果统计样式 */
.filter-summary {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  color: #666;
  background-color: #f0f7ff;
  border: 1px solid #e1edff;
  border-radius: 4px;
  min-width: 120px;
  justify-content: center;
}

/* 下拉菜单选项中的数量显示 */
.filter-select.enhanced-select option {
  font-weight: normal;
}

.filter-select.enhanced-select option::after {
  content: attr(data-count);
  font-weight: bold;
  margin-left: 8px;
  color: #666;
}

/* 增强下拉菜单在不同状态下的样式 */
.enhanced-select-container:focus-within .filter-select.enhanced-select {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .enhanced-select-container {
    width: 100%;
  }
  
  .filter-select.enhanced-select {
    width: 100%;
    min-width: unset;
  }
  
  .filter-summary {
    width: 100%;
    margin-top: 8px;
  }
}

/* 当选项很多时的滚动条样式 */
.filter-select.enhanced-select {
  max-height: 300px;
  overflow-y: auto;
}

/* 自定义滚动条 */
.filter-select.enhanced-select::-webkit-scrollbar {
  width: 6px;
}

.filter-select.enhanced-select::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.filter-select.enhanced-select::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.filter-select.enhanced-select::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 16px;
}